
import { IloginForm } from '@/store/modules/userType';
import request from '@/utils/request';
enum API {
    LOGIN_URL = '/admin/acl/index/login',
    USERINFO_URL = '/admin/acl/index/info',
    LOGOUT_URL = '/admin/acl/index/logout'
}
export const login = (data: IloginForm) => request.post(API.LOGIN_URL, data)

export const logout = () =>  request.post(API.LOGOUT_URL)

export const getUserInfo =() =>  request.get(API.USERINFO_URL)